<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<DomainModel.Entities.Question>>" %>

<h3>Question Bank</h3>

<table class="staffingexpert" style="width: 650px" cellspacing="0" id="AttachQuestionsTable">
<thead>
<tr>
    <th>Question</th>
    <th>Actions</th>
</tr>
</thead>
<tbody>         
    <% foreach (var question in Model) { %>
    <tr>
        <td style="width: 630px; white-space: pre-wrap;"><%= Html.Encode(question.QuestionString) %></td>
        <td style="width: 20px"><%= Html.ActionLink("Attach", "Attach", new { question.QuestionID })%></td>
    </tr>
    <% }  %>
</tbody>  
</table>